import request from '@/utils/request'

// 查询询价单管理列表
export function listInquireOrder(query) {
  return request({
    url: '/wms/inquireOrder/list',
    method: 'get',
    params: query
  })
}

// 查询询价单下拉框
export function listInquireOrderXlk() {
  return request({
    url: '/wms/inquireOrder/listXlk',
    method: 'get'
  })
}

// 查询询价单管理详细
export function getInquireOrder(orderCode) {
  return request({
    url: '/wms/inquireOrder/' + orderCode,
    method: 'get'
  })
}

// 查询询价单商品
export function getOrderProduct(data) {
  return request({
    url: '/wms/inquireOrder/getOrderProduct',
    method: 'post',
    data: data
  })
}

// 新增询价单管理
export function addInquireOrder(data) {
  return request({
    url: '/wms/inquireOrder',
    method: 'post',
    data: data
  })
}

// 导入询价单
export function importInquireOrder(data) {
  return request({
    url: '/wms/inquireOrder/importData',
    method: 'post',
    data: data
  })
}

// 修改询价单管理
export function updateInquireOrder(data) {
  return request({
    url: '/wms/inquireOrder',
    method: 'put',
    data: data
  })
}

// 结束询价单管理
export function endInquireOrder(data) {
  return request({
    url: '/wms/inquireOrder/end',
    method: 'put',
    data: data
  })
}

// 删除询价单管理
export function delInquireOrder(orderCode) {
  return request({
    url: '/wms/inquireOrder/' + orderCode,
    method: 'delete'
  })
}
